import axios from "../config.js";

/**
 * 获取所有用户信息
 * @returns {Promise<unknown>}
 */
export const findAll = data => {
    return axios({
        url: "/user/findAll",
        method: "get",
        data
    });
};
/**
 * 获取用户信息
 * @returns {Promise<unknown>}
 */
export const findOne = data => {
  return axios({
    url: "/user/findOne",
    method: "post",
    data
  });
};
/**
 * 修改用户信息
 * @returns {Promise<unknown>}
 */
export const update = data => {
  return axios({
    url: "/user/update",
    method: "post",
    data
  });
};


